<?php
class BaseCard implements ICard
{
	var $color = 0;
	var $no = -1;
	var $num = 1;
	var $direction = 1;
	var $step = 1;
	var $type = 0;

	function equal($state)
	{
		throw new Exception("BaseCard can not call method equal");
	}

	function overlay($state)
	{
		throw new Exception("BaseCard can not call method overlay");
	}

	function __toString()
	{
		return "color=$this->color, no=$this->no, num=$this->num, direction=$this->direction, type=$this->type";
	}
}